{include file=buyer.header.html}
<!--[if IE 6]>
<script type="text/javascript" src="{res file=js/belatedPNG.js}" charset="utf-8"></script>
<script>$(function(){DD_belatedPNG.fix('.con-r-d .btn');});</script>
<![endif]-->
<script>
	$(function(){
		var wlslide={
			oUl:$('ul.visited-ul'),
			btnl:$('a.visitedbtnl'),
			btnr:$('a.visitedbtnr'),
			oh:$('ul.visited-ul > li:eq(0)').height(),
			len:$('ul.visited-ul > li').length,
			n:0,
			s:function(o,n,h){
				o.stop().animate({'top':n*h},500);
			}
		};
		wlslide.oUl.height(wlslide.oh*wlslide.len);
		wlslide.btnr.bind('click',function(){
			if(wlslide.len>2&&Math.abs(wlslide.n)<wlslide.len-1){
				wlslide.n--;
				wlslide.s(wlslide.oUl,wlslide.n,wlslide.oh);
			}
		});
		wlslide.btnl.bind('click',function(){
			if(wlslide.len>2&&wlslide.n<0){
				wlslide.n++;
				wlslide.s(wlslide.oUl,wlslide.n,wlslide.oh);
			}
		});
	});
	</script>
<!-- 内容 -->
<div class="content f-cb">
  <!-- 当前位置 -->
  {include file=path.html}
  <!-- 内容左边栏 -->
  {include file=member.menu.buyer.html}
  <div class="con-c">
    <div class="con-c-t"> <em>账户名：</em> <span>{$user.user_name}</span> </div>
    <div class="con-c-info">
      <div class="c-info-t">
        <div class="info-t-l">
          <div class="info-t-lt f-cb">
            <div class="info-t-ltl"> <a href="{url app=member&act=profile}" title="编辑资料"><img src="<!--{if $user.portrait}-->{$user.portrait}?{$random_number}<!--{else}-->{$site_url}/data/system/default_user_portrait.gif<!--{/if}-->" width="85" height="85" alt="编辑资料" /></a></div>
            <div class="info-t-ltr">
              <ul class="info-t-lul{$security_data.level} f-cb">
                <li class="info-mail">
                  <!--{if $security_data.security.binding_email}-->
                  <a href="{url app=account_security}" target="_blank" class="green"> <em>&#xe604;</em> <i>邮箱已认证</i> </a>
                  <!--{else}-->
                  <a href="{url app=account_security}" target="_blank"> <em>&#xe604;</em> <i>邮箱未认证</i> </a>
                  <!--{/if}-->
                </li>
                <li class="info-phone">
                  <!--{if $security_data.security.binding_mobile}-->
                  <a href="{url app=account_security}" target="_blank" class="green"> <em>&#xe601;</em> <i>手机已认证</i> </a>
                  <!--{else}-->
                  <a href="{url app=account_security}"  target="_blank"> <em>&#xe601;</em> <i>手机未认证</i> </a>
                  <!--{/if}-->
                </li>
                <li>账户安全：</li>
                <li class="info-safe">
                  <div class="safe-level">
                    <div class="safe-num"></div>
                  </div>
                </li>
                <li class="safe-result">{$safety_level.$security_data.level}</li>
                <li class="safe-sug">
                  <!--{if $security_data.level neq 3}-->
                  <a href="{url app=account_security}" target="_blank" class="linkbtn">提升安全等级&gt;&gt;</a>
                  <!--{/if}-->
                </li>
              </ul>
            </div>
          </div>
          <!--<div class="info-b-r f-cb">
            <ul class="f-cb">
              <li>
                <h5>可用余额：</h5>
              </li>
              <li class="info-b-rm"> <em>{$user.user_money}</em> 元 </li>
              <li> <a href="index.php?app=paycenter&act=recharge&from=buyer" class="btn b-radius">充值</a> <a href="index.php?app=paycenter&act=cash&from=buyer" class="btn b-radius">提现</a> </li>
            </ul>
          </div> -->
        </div>
      </div>
    </div>
    <div class="con-c-bg"></div>
    <div class="con-c-remind">
      <dl>
        <dt class="f-cb">
          <div class="remind-t f-cb"> <i></i> <em>买到的商品</em> </div>
          <ul class="wltab f-cb">
            <li> <a href="{url app=buyer_order&type=pending}">待付款</a> （ {if $buyer_stat.submitted>0}<a href="{url app=buyer_order&type=pending}" target="_blank"><span>{$buyer_stat.submitted}</span></a>{else}0{/if} ）  </li>
            <li><a href="{url app=buyer_order&type=accepted}">待卖家发货</a>（{if $buyer_stat.accepted>0}<a href="{url app=buyer_order&type=accepted}" target="_blank"><span>{$buyer_stat.accepted}</span></a>{else}0{/if}）</li>
            <li><a href="{url app=buyer_order&type=shipped}">待确认收货</a>（{if $buyer_stat.shipped>0}<a href="{url app=buyer_order&type=shipped}" target="_blank"><span>{$buyer_stat.shipped}</span></a>{else}0{/if}）</li>
            <li><a href="{url app=buyer_order&type=evalua}">待评价</a>（{if $buyer_stat.evalua>0}<a href="{url app=buyer_order&type=evalua}" target="_blank"><span>{$buyer_stat.evalua}</span></a>{else}0{/if}）</li>
          </ul>
        </dt>
        <dd class="remind-dd">
          <table width="100%">
			<!--{foreach from=$orders item=order}-->
			<!--{foreach from=$order.order_goods key=k item=v}-->
			<!--{if $order.index eq $k}-->
            <tr>
              <td><div> <a target="_blank" href="{jsurl app=goods&id=$v.goods_id}" title="{$v.goods_name|escape}"><img src="{$v.goods_image}" alt="{$v.goods_name|escape}" height="100" /></a> </div></td>
              <td><p>￥{$order.order_amount}（含运费￥{if $order.shipping_fee}{$order.shipping_fee}{else}0{/if}元）</p>
                <p> 共 <span>{$order.count}</span> 款；合计 <span>{$order.quantity}</span> 件 </p>
                <a href="{url app=buyer_order&act=view&order_id=$order.order_id}" target="_blank" class="linkbtn">查看详情 >></a></td>
              <td><p>{$order.status|modifier:order_status}<!--{if $order.evaluation_status}-->,&nbsp;{$lang.already_evaluate}<!--{/if}--></p>
                <p>{$order.add_time|date:Y-m-d H:s}</p></td>
				<!--{if $order.status eq 11}-->
              <td align="center"><a href="{carturl app=cashier&order_id=$order.order_id}" target="_blank" id="order{$order.order_id}_action_pay"{if $order.status neq ORDER_PENDING} style="display:none"{/if} class="btn b-radius">马上付款</a></td>
			  <!--{elseif $order.status eq 30}-->
			  <td align="center"><a href="{url app=buyer_order&act=view&order_id=$order.order_id}"  id="order{$order.order_id}_action_confirm"{if $order.status neq ORDER_SHIPPED or $order.payment_code eq 'cod'} style="display:none"{/if} class="btn b-radius">确认收货</a></td>
			  <!--{elseif $order.status eq 40}-->
			  <td align="center"><a href="{url app=buyer_order&act=view&order_id=$order.order_id}" id="order{$order.order_id}_action_confirm"{if $order.status neq ORDER_SHIPPED or $order.payment_code eq 'cod'} style="display:none"{/if} class="btn b-radius">交易完成</a></td>
			  <!--{/if}-->
            </tr>
			<!--{/if}-->
			<!--{/foreach}-->
            <!--{/foreach}-->
          </table>
        </dd>
      </dl>
    </div>
    <div class="con-c-count">
      <dl>
        <dt class="f-cb">
          <div class="count-t f-cb"> <i></i> <em><a href="{url app=my_favorite}" target="_blank">收藏的商品</a></em> </div>
          <ul class="wltab f-cb">
            <li> 全部
              （ <span>{$collect_goods_count}</span> ） </li>
            <!--<li>降价（0）</li>
							<li>促销（0）</li>-->
          </ul>
        </dt>
        <dd> 
         <!--{if $collect_goods}-->       
          <ul class="count-list f-cb">
          <!--{foreach from=$collect_goods item=goods name=v}-->
            <li>
              <p> <a href="{jsurl app=goods&id=$goods.goods_id}" target="_blank"> <img src="{$goods.default_image}" alt="{$goods.goods_name|escape}" height="100"> </a> </p>
              
              <h6 class="listbtn"><a href="{jsurl app=goods&id=$goods.goods_id}" target="_blank" title="{$goods.goods_name|escape}">{$goods.goods_name|escape|truncate:30}</a></h6>
              <span class="spana">{$goods.price|price}</span>
              
            </li>
            <!--{/foreach}-->           
          </ul>
          <!--{else}-->
        <table width="100%" class="receive-table">
          <tr>
            <td class="member_no_records padding6">亲,您还没有收藏到商品</td>
          </tr>
        </table>
        <!--{/if}-->
        </dd>
      </dl>
    </div>
    <div class="con-c-bg"></div>
  </div>
  <!-- 内容右边栏 -->
  <div class="con-r">
    <div class="con-r-t"> <em>{$date}</em> <em class="bem">{$week}</em> </div>
    <div class="con-r-d">
      <dl>
        <dt class="f-cb"> <em>购物车</em> </dt>
        <dd class="menber">
        <!--{if $cart_top_list.total}-->
          <table width="100%">     
            <!--{foreach from=$cart_top_list.cart item=item}-->  
            <tr>
              <td><div> <a href="{jsurl app=goods&id=$item.goods_id}" target="_blank"> <img src="{$item.goods_image}" alt="" width="100" /> </a> </div></td>
              <td><p><a href="{jsurl app=goods&id=$item.goods_id}" target="_blank">{$item.goods_name|truncate:52}</a></p>
                <span>{$item.price|price}</span></td>
            </tr>
            <!--{/foreach}-->           
            <tr>
              <td colspan="2"><a href="{carturl app=cart}" target="_blank" class="btn"> 购物车 <i>{$cart_top_list.total|default:0}</i> 件 </a></td>
            </tr>
          </table>
          <!--{else}-->
          <p class="data_empty">您的购物车还没有货品，赶紧选购吧！</p>
          <!--{/if}-->
        </dd>
      </dl>
    </div>
	<!--{if $goods_history}-->
    <div class="con-r-d">
      <dl>
        <dt class="f-cb"> <em>浏览过的商品</em> </dt>
        <dd class="visited-dd">
          <ul class="visited-ul">
            <!--{foreach from=$goods_history item=item}-->
            <li>
              <table width="100%">
                <tr>
                  <td><div> <a href="{jsurl app=goods&id=$item.goods_id}" target="_blank"> <img src="{$item.default_image}" alt="" height="100" /> </a> </div></td>
                  <td><p><a href="{jsurl app=goods&id=$item.goods_id}" target="_blank">{$item.goods_name|truncate:52}</a></p><span>{$item.price|price}</span></td>
                </tr>
              </table>
            </li>
			<!--{/foreach}-->
          </ul>
        </dd>
        <dd class="visited-btn">
          <table width="100%">
            <tr>
              <td><a class="visitedbtnl"></a></td>
              <td><a class="visitedbtnr"></a></td>
            </tr>
          </table>
        </dd>
      </dl>
    </div>
<!--{/if}-->
    <div class="con-c-bg"></div>
  </div>
</div>
<!-- 页脚 -->
{include file=footer.html}